package com.sophossystems.client.asmon.hibernate;

import java.io.Serializable;
import java.util.Date;

import com.sophossystems.client.asmon.dto.RepresentanteLegalDTO;

public class RepresentanteLegal implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 8429818470844288629L;

	/** 
	 * This attribute maps to the column idRepLegal in the REPRESENTANTE_LEGAL table.
	 */
	protected int idRepLegal;

	/** 
	 * This attribute maps to the column idCliente in the REPRESENTANTE_LEGAL table.
	 */
	protected int idCliente;

	/** 
	 * This attribute represents whether the primitive attribute idCliente is null.
	 */
	protected boolean idClienteNull = true;

	/** 
	 * This attribute maps to the column aPaterno in the REPRESENTANTE_LEGAL table.
	 */
	protected String aPaterno;

	/** 
	 * This attribute maps to the column aMaterno in the REPRESENTANTE_LEGAL table.
	 */
	protected String aMaterno;

	/** 
	 * This attribute maps to the column nombres in the REPRESENTANTE_LEGAL table.
	 */
	protected String nombres;

	/** 
	 * This attribute maps to the column sexo in the CLIENTE_PERSONAS_FISICAS table.
	 */
	protected String sexo;
	
	/** 
	 * This attribute maps to the column fNacimiento in the REPRESENTANTE_LEGAL table.
	 */
	protected Date fNacimiento;

	/** 
	 * This attribute maps to the column fInicioActividad in the REPRESENTANTE_LEGAL table.
	 */
	protected Date fInicioActividad;

	/** 
	 * This attribute maps to the column email in the REPRESENTANTE_LEGAL table.
	 */
	protected String email;

	/** 
	 * This attribute maps to the column rfc in the REPRESENTANTE_LEGAL table.
	 */
	protected String rfc;

	/** 
	 * This attribute maps to the column curp in the REPRESENTANTE_LEGAL table.
	 */
	protected String curp;

	/** 
	 * This attribute maps to the column numTel in the REPRESENTANTE_LEGAL table.
	 */
	protected String numTel;

	/** 
	 * This attribute maps to the column ext1 in the REPRESENTANTE_LEGAL table.
	 */
	protected String ext1;
	
	/** 
	 * This attribute represents whether the primitive attribute numTel is null.
	 */
	protected boolean numTelNull = true;

	/** 
	 * This attribute maps to the column idDireccion in the REPRESENTANTE_LEGAL table.
	 */
	protected int idDireccion;

	/** 
	 * This attribute maps to the column rfcCliente in the REPRESENTANTE_LEGAL table.
	 */
	protected String rfcCliente;

	/**
	 * Method 'RepresentanteLegal'
	 * 
	 */
	public RepresentanteLegal()
	{
	}

	/**
	 * Method 'getIdRepLegal'
	 * 
	 * @return int
	 */
	public int getIdRepLegal()
	{
		return idRepLegal;
	}

	/**
	 * Method 'setIdRepLegal'
	 * 
	 * @param idRepLegal
	 */
	public void setIdRepLegal(int idRepLegal)
	{
		this.idRepLegal = idRepLegal;
	}

	/**
	 * Method 'getIdCliente'
	 * 
	 * @return int
	 */
	public int getIdCliente()
	{
		return idCliente;
	}

	/**
	 * Method 'setIdCliente'
	 * 
	 * @param idCliente
	 */
	public void setIdCliente(int idCliente)
	{
		this.idCliente = idCliente;
		this.idClienteNull = false;
	}

	/** 
	 * Sets the value of idClienteNull
	 */
	public void setIdClienteNull(boolean idClienteNull)
	{
		this.idClienteNull = idClienteNull;
	}

	/** 
	 * Gets the value of idClienteNull
	 */
	public boolean isIdClienteNull()
	{
		return idClienteNull;
	}

	
	
	/**
	 * @return the aPaterno
	 */
	public String getaPaterno() {
		return aPaterno;
	}

	/**
	 * @param aPaterno the aPaterno to set
	 */
	public void setaPaterno(String aPaterno) {
		this.aPaterno = aPaterno;
	}

	/**
	 * @return the aMaterno
	 */
	public String getaMaterno() {
		return aMaterno;
	}

	/**
	 * @param aMaterno the aMaterno to set
	 */
	public void setaMaterno(String aMaterno) {
		this.aMaterno = aMaterno;
	}

	/**
	 * Method 'getNombres'
	 * 
	 * @return java.lang.String
	 */
	public java.lang.String getNombres()
	{
		return nombres;
	}

	/**
	 * Method 'setNombres'
	 * 
	 * @param nombres
	 */
	public void setNombres(java.lang.String nombres)
	{
		this.nombres = nombres;
	}
	

	/**
	 * @return the sexo
	 */
	public String getSexo() {
		return sexo;
	}

	/**
	 * @param sexo the sexo to set
	 */
	public void setSexo(String sexo) {
		this.sexo = sexo;
	}

	
	
	/**
	 * @return the fNacimiento
	 */
	public Date getfNacimiento() {
		return fNacimiento;
	}

	/**
	 * @param fNacimiento the fNacimiento to set
	 */
	public void setfNacimiento(Date fNacimiento) {
		this.fNacimiento = fNacimiento;
	}

	/**
	 * @return the fInicioactividad
	 */
	public Date getfInicioActividad() {
		return fInicioActividad;
	}

	/**
	 * @param fInicioactividad the fInicioactividad to set
	 */
	public void setfInicioActividad(Date fInicioActividad) {
		this.fInicioActividad = fInicioActividad;
	}

	/**
	 * Method 'getEmail'
	 * 
	 * @return java.lang.String
	 */
	public java.lang.String getEmail()
	{
		return email;
	}

	/**
	 * Method 'setEmail'
	 * 
	 * @param email
	 */
	public void setEmail(java.lang.String email)
	{
		this.email = email;
	}

	/**
	 * Method 'getRfc'
	 * 
	 * @return java.lang.String
	 */
	public java.lang.String getRfc()
	{
		return rfc;
	}

	/**
	 * Method 'setRfc'
	 * 
	 * @param rfc
	 */
	public void setRfc(java.lang.String rfc)
	{
		this.rfc = rfc;
	}

	/**
	 * Method 'getCurp'
	 * 
	 * @return java.lang.String
	 */
	public java.lang.String getCurp()
	{
		return curp;
	}

	/**
	 * Method 'setCurp'
	 * 
	 * @param curp
	 */
	public void setCurp(java.lang.String curp)
	{
		this.curp = curp;
	}

	/**
	 * Method 'getNumTel'
	 * 
	 * @return int
	 */
	public String getNumTel()
	{
		return numTel;
	}

	/**
	 * Method 'setNumTel'
	 * 
	 * @param numTel
	 */
	public void setNumTel(String numTel)
	{
		this.numTel = numTel;
	}
	
	/**
	 * @return the ext1
	 */
	public String getExt1() {
		return ext1;
	}

	/**
	 * @param ext1 the ext1 to set
	 */
	public void setExt1(String ext1) {
		this.ext1 = ext1;
	}

	/**
	 * Method 'getIdDireccion'
	 * 
	 * @return int
	 */
	public int getIdDireccion()
	{
		return idDireccion;
	}

	/**
	 * Method 'setIdDireccion'
	 * 
	 * @param idDireccion
	 */
	public void setIdDireccion(int idDireccion)
	{
		this.idDireccion = idDireccion;
	}

	/**
	 * Method 'getRfcCliente'
	 * 
	 * @return java.lang.String
	 */
	public java.lang.String getRfcCliente()
	{
		return rfcCliente;
	}

	/**
	 * Method 'setRfcCliente'
	 * 
	 * @param rfcCliente
	 */
	public void setRfcCliente(java.lang.String rfcCliente)
	{
		this.rfcCliente = rfcCliente;
	}

	public void mapper(RepresentanteLegalDTO representante){
		
		this.aMaterno = representante.getaMaterno();
		this.aPaterno =representante.getaPaterno();
		this.curp = representante.getCurp();
		this.email = representante.getEmail();
		this.fInicioActividad = representante.getfInicioActividad();
		this.fNacimiento = representante.getfNacimiento();
		this.idCliente = representante.getIdCliente();
		this.idDireccion = representante.getIdDireccion();
		this.idRepLegal = representante.getIdRepLegal();
		this.nombres = representante.getNombres();
		this.sexo = representante.getSexo();
		this.numTel = representante.getNumTel();
		this.rfc = representante.getRfc();
		this.rfcCliente = representante.getRfcCliente();
		this.ext1 = representante.getExt1();
	}
}
